<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
        <!-- jquery -->
        <script src="/lianxijs/libs/jquery/jquery-1.11.1.min.js"></script>
        
        <!-- http插件 -->
        <script src="/lianxijs/libs/http/axios.min.js"></script>
        
        <!-- 弹窗插件 -->
        <link rel="stylesheet" type="text/css" href="/lianxijs/libs/sweetalert/sweetalert.css"  />
        <script src="/lianxijs/libs/sweetalert/sweetalert-dev.js"></script>
        
        <!-- 时间格式化插件 -->
        <script src="/lianxijs/libs/moment/moment.min.js"></script>   
        
        <!-- 精确计算插件 -->
        <!-- <script src="/lianxijs/libs/number-precision/index.iife.js"></script> -->
        <script src="/lianxijs/libs/number-precision/index.umd.js"></script>
        
        <!-- 带搜索的下拉框 -->
        <link rel="stylesheet" type="text/css" href="/lianxijs/libs/select2/select2.css"/>
        <script src="/lianxijs/libs/select2/select2.js"></script>
        
        <!-- 日历插件 -->
        <!-- <link rel="stylesheet" type="text/css" href="/lianxijs/libs/jquerydateTime/dateTime.css"/> -->
        <!-- <script src="/lianxijs/libs/jquerydateTime/dateTime.min.js"></script> -->
        
    </head>
    <body>
         <!-- 时间格式化插件示例 -->
        <H3>时间格式化插件示例 https://momentjs.com/</H3>
        <div id="moment"></div>
        <hr/> 
    </body>
</html>
<script>
   let t = function () {
        let m = moment().format("YYYY-MM-DD HH:mm:ss");
        $("#moment").text("现在是：" + m);
        window.setTimeout(t, 1000);
    };
    t();
    console.log(JSON.stringify(new Date()));
    let d = moment(new Date("2019-10-12T15:30:00.000+0800")).format("YYYY-MM-DD HH:mm:ss");
    console.log(d);
</script>